Component({
	properties: {
		caseList: {
			value: [],
			type: Array,
		},
		caseLen: {
			type: Number,
			default: 0,
		},
		name: {
			value: '',
			type: String
		},
		userId: {
			value: '',
			type: String
		},
		phone: {
			value: '',
			type: String
		}
	},
	data: {
	},
	attached() {},
	/**
	 * 组件的方法列表
	 */
	methods: {
		toMore() {
			wx.navigateTo({
				url: '/pages/weddingMan/personal/cases/caseList/caseList?name=' + this.properties.name + '&userId=' +
					this.properties.userId + '&phone=' + this.properties.phone
			});
		},
		toCaseDetail(e) {
			wx.navigateTo({
				url: '/pages/weddingMan/personal/cases/caseDetail/caseDetail?caseId=' + e.currentTarget.dataset.caseid +
					'&userId=' + this.properties.userId + '&phone=' + this.properties.phone + '&name=' +
					this.properties.name
			});
		}
	}
})
